package com.zyong.design.pattern.interpret.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-06-01 20:56
 */
public class Client {
    public static void main(String[] args) {
        ExpressionContext context = new ExpressionContext("666 + 888 - 777");
        System.out.println(context.calculate());

        context = new ExpressionContext("123 - 456 + 11");
        System.out.println(context.calculate());
    }
}
